<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@include file="header.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Edit member detail</title>
<script language="JavaScript" type="text/javascript" src="../datePicker/WdatePicker.js"></script>
<link rel="stylesheet" type="text/css" href="common.css">
<style>
.form-invalid {
background-color:#FFFFFF;
/*background-image:url(../images/invalid_line.gif);*/
border-color:#CC3300;
}
</style>
</head>
<body>
<script>
$(document).ready(function(){
	 
}
);
	function checkAndSubmit(){
		var form = document.getElementById("editMemberDetailForm");
		form.submit();
	}
</script>  
<div align="center">编辑会员详细信息</div>
<br/>
<form method="post" action="editMemberDetail.action" id="editMemberDetailForm">

<table width="80%" border="0" cellpadding="3" cellspacing="1"  bgcolor="#FFFFFF" align="center">
	<tr>
		<td class="tdbgcolor1" >性别:</td>
		<td class="tdbgcolor1" >
				<input type="radio" name="sex"  value="1" <s:if test="memberDetail.sex == 1"> checked="checked" </s:if>/>男
				<input type="radio" name="sex" value="0" <s:if test="memberDetail.sex == 0"> checked="checked" </s:if> />女
				<input type="radio" name="sex" value="-1" <s:if test="memberDetail.sex == -1"> checked="checked" </s:if> />不选
		</td>
	</tr>
	<tr>
		<td class="tdbgcolor2" >生日:</td>
		<td class="tdbgcolor2" ><input  class="Wdate" type="text" name="birthdayStr" id="birthdayStr"   value="<s:property value='memberDetail.birthday'/>" onFocus="WdatePicker({isShowClear:false,readOnly:true})"/></td>
	</tr>
	<tr>
		<td class="tdbgcolor1" >年龄范围:</td>
		<td class="tdbgcolor1">
			<select name="ageRange" id="ageRange">
						<option value="0" <s:if test='memberDetail.ageRange==0'>selected</s:if>>16--20</option>
						<option value="1" <s:if test='memberDetail.ageRange==1'>selected</s:if>>21--25</option>
						<option value="2" <s:if test='memberDetail.ageRange==2'>selected</s:if>>25--30</option>
						<option value="3" <s:if test='memberDetail.ageRange==3'>selected</s:if>>30--35</option>
						<option value="4" <s:if test='memberDetail.ageRange==4'>selected</s:if>>36--40</option>
						<option value="5" <s:if test='memberDetail.ageRange==5'>selected</s:if>>41--45</option>
						<option value="6" <s:if test='memberDetail.ageRange==6'>selected</s:if>>41--45</option>
						<option value="7" <s:if test='memberDetail.ageRange==7'>selected</s:if>>46--50</option>
						<option value="8" <s:if test='memberDetail.ageRange==8'>selected</s:if>>51--50</option>
						<option value="9" <s:if test='memberDetail.ageRange==9'>selected</s:if>>56--60</option>
						<option value="10" <s:if test='memberDetail.ageRange==10'>selected</s:if>>61--70</option>
			</select>
		</td>
	</tr>
 
	<tr>
	<td class="tdbgcolor1" >邮件:</td>
		<td class="tdbgcolor1"><input  size="30" type="text" name="email" id="email" value="<s:property value='memberDetail.email'/>" /></td>
	</tr>	
 
	 <tr>
	 	<td class="tdbgcolor2" >手机</td>
	 	<td class="tdbgcolor2" ><input size="30" type="text" name="mobileNumber" id="mobileNumber"  value="<s:property value='memberDetail.mobileNumber'/>"/></td>
	 	
	 </tr>
	<tr>
		<td class="tdbgcolor1" >身份证号:</td>
		<td class="tdbgcolor1" >
			<input type="text" size="30"  name="personId" id="personId" value="<s:property value='memberDetail.personId'/>"/>
		</td>
	</tr>
	<tr>

		<td colspan="2" class="tdbgcolor2">
			<input type="button" value="Save"  onclick="checkAndSubmit()"/>&nbsp;
			<input type="hidden" name="memberId" value="<s:property value='memberDetail.memberId'/>"/>
			<input type="hidden" name="memberDetailId" value="<s:property value='memberDetail.id'/>"/>
			<input	type="button" value="reset" />&nbsp;
			<input type="hidden" name="status"  id="status" value="1"/>
			<input type="hidden" name="points"  id="points" value="0"/>
			<input	type="button" value="返回"  onclick="javascript:window.history.back();" />
		</td>
</table>
</form>
</body>
</html>
